package ltd.sshine.networkclient.config;

import lombok.Data;
import lombok.EqualsAndHashCode;
import ltd.sshine.networkclient.constraint.ConfigConstraint;
import ltd.sshine.networkcommon.config.ConnectConfig;
import ltd.sshine.networkcommon.config.ProxyConfig;

import java.util.List;


@Data
@EqualsAndHashCode(callSuper = true)
public class ServerConfig  extends ConnectConfig{
    /**
     * 服务器地址
     */
    private String host= ConfigConstraint.SERVER_HOST;
    /**
     * 服务器端口
     */
    private int port=ConfigConstraint.SERVER_PORT;
    public ServerConfig() {
        ProxyConfig proxy = new ProxyConfig();
        proxy.setPort(List.of(ConfigConstraint.SERVER_PROXY_PORT));
        setProxy(proxy);
    }
}
